import request from '@/utils/http'
//加入购物车
export const insertCartAPI = ({skuId,count})=>{
    return request({
        url:'/member/cart',
        method:'post',
        data:{
            skuId,
            count
        }
    })

}
//获取最新购物车列表
export const findNewCartListAPI = ()=>{
    return request({
        url:'/member/cart'
        })

}
export const delCartAPI = (ids)=>{
    return request({
        url:'/member/cart',
        method:'delete',
        data:{
            ids
        }
    })
}
export const mergeCartAPI = (data)=>{
    return request({
        url:'/member/cart/merge',
        method:'post',
        data
    })
}